//
//  season.m
//  OC1_类和对象课后作业
//
//  Created by dllo on 15/10/22.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "season.h"

@implementation season

-(id)init
{

    _name = @"Spring";
    _cont = 1;
    [self info];
    return self;

}

-(void)info
{

    NSLog(@"%@ %ld", _name, _cont);

}

-(void)godie
{

    NSLog(@"%@来了,十一年中的第%ld个季节", _name, _cont);

}


-(id)initWithName:(NSString *)name cont:(NSInteger)cont
{
    _name = name;
    _cont = cont;
    return self;
}

-(NSString *)name
{
    return _name;
}

-(void)setName:(NSString *)name
{
    _name = name;
}
-(NSInteger)cont
{
    return _cont;
}
-(void)setCont:(NSInteger)cont
{
    _cont = cont;
}


+ (id)seasonWithName:(NSString *)name cont:(NSInteger)cont
{
    season *s = [[season alloc] initWithName:name cont:cont];
    return s;

}



@end
